package com.suse.service.task.scheduled;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 定时任务
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-08-22 15:01
 */
@Slf4j
@Component
public class ScheduledTask {

    // Spring Task中只能写6位
    @Scheduled(cron = "0/3 * * * * *")
    public void test01() {
        log.info("定时任务正在执行...");
    }

}
